package top.lixunda.commerce.gateway.gateway.config;

import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import top.lixunda.commerce.gateway.gateway.filter.AccessLogGlobalFilter;

/**
 * @author LiXunda
 * @version time:2019/8/30 17:13
 */
@Configuration
public class GlobalFilterConfig {

    @Bean
    @Order(10000)
    public GlobalFilter accessLogGlobalFilter() {
        return new AccessLogGlobalFilter();
    }

}
